import { createRouter, createWebHistory } from 'vue-router'

const routes = [{
	//首页
	path: "/",
	name: "index",
	component: () => import('@/pages/index/index.vue')
}];

const router = createRouter({
	history: createWebHistory(),
	routes
})
router.beforeEach((to, from, next) => {
	// console.log('beforeEach-to', to);
	// console.log('beforeEach-from', from);
	next();
});

export default router;